package com.msk.wlhy.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.msk.common.utils.DictUtils;
import com.msk.sys.domain.DataEntity;
import org.apache.commons.lang3.StringUtils;

import java.util.Date;

/**
 * @author wlxiang
 * @description HtBaseDistinces
 * @date 20201117
 * 运力货源承运商关联表
 *
 */
public class TransportCapacitySupplierRel extends DataEntity<TransportCapacitySupplierRel> {

	private static final long serialVersionUID = 1L;


	private String bindStatus;//'状态 0:申请中 1:已绑定/已关联 2:已拒绝',
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date bingTime;//'绑定时间/关联时间

	//司机信息
	private String driverId;//司机Id'
	private String driverName;
	private String carNumber;
	private String driverPhone;
	private String driverStatus;//司机状态 0:闲置 1:待运 2:在途 3:其它

	//承运商信息
	private String supplierId;//'承运商Id'
	private String supplierName;
	private String supplierPhone;
	private String supplierAddressName;
	private String supplierSiteName;
	private String supplierSupCode;
	private String createDate0;  // 保单上传时间
	private String  createDate1;  // 保单上传时间-- 搜索字段 end
	private String bingTime0;
	private String bingTime1;

	//车辆信息
	private String carId;
	private String carType;
	private String carTypeAlias;
	private String vehicleOwnership;
	private String vehicleEnergyType;//车辆能源类型
	//1 自有   2 外部
	private String vehicleOwnershipAlias;
	private String transportNumber;
	private Double carLoad;
	private String carWeight;
	private String carLength;
	private String carWidth;
	private String carHeight;
	private String isPassCheck; // 是否通过审核 0 待审核 1 已审核、2驳回
	private String isPassCheckAlias;
	private String state;
	private String stateAlias;
	private String status;
	private String statusAlias;
	private String color;
	private String colorAlias;

	private String carMessageFunctionCode;
	private String messageFunctionCode;

	public String getDriverId() {
		return driverId;
	}

	public void setDriverId(String driverId) {
		this.driverId = driverId;
	}

	public String getDriverStatus() {
		return driverStatus;
	}

	public void setDriverStatus(String driverStatus) {
		this.driverStatus = driverStatus;
	}

	public String getSupplierId() {
		return supplierId;
	}

	public void setSupplierId(String supplierId) {
		this.supplierId = supplierId;
	}

	public String getBindStatus() {
		return bindStatus;
	}

	public void setBindStatus(String bindStatus) {
		this.bindStatus = bindStatus;
	}

	public Date getBingTime() {
		return bingTime;
	}

	public void setBingTime(Date bingTime) {
		this.bingTime = bingTime;
	}

	public String getDriverName() {
		return driverName;
	}

	public void setDriverName(String driverName) {
		this.driverName = driverName;
	}

	public String getCarNumber() {
		return carNumber;
	}

	public void setCarNumber(String carNumber) {
		this.carNumber = carNumber;
	}

	public String getDriverPhone() {
		return driverPhone;
	}

	public void setDriverPhone(String driverPhone) {
		this.driverPhone = driverPhone;
	}

	public String getSupplierName() {
		return supplierName;
	}

	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName;
	}

	public String getSupplierPhone() {
		return supplierPhone;
	}

	public void setSupplierPhone(String supplierPhone) {
		this.supplierPhone = supplierPhone;
	}

	public String getSupplierAddressName() {
		return supplierAddressName;
	}

	public void setSupplierAddressName(String supplierAddressName) {
		this.supplierAddressName = supplierAddressName;
	}

	public String getSupplierSiteName() {
		return supplierSiteName;
	}

	public void setSupplierSiteName(String supplierSiteName) {
		this.supplierSiteName = supplierSiteName;
	}

	public String getSupplierSupCode() {
		return supplierSupCode;
	}

	public void setSupplierSupCode(String supplierSupCode) {
		this.supplierSupCode = supplierSupCode;
	}

	public String getCreateDate0() {
		return createDate0;
	}

	public void setCreateDate0(String createDate0) {
		this.createDate0 = createDate0;
	}

	public String getCreateDate1() {
		return createDate1;
	}

	public void setCreateDate1(String createDate1) {
		this.createDate1 = createDate1;
	}

	public String getBingTime0() {
		return bingTime0;
	}

	public void setBingTime0(String bingTime0) {
		this.bingTime0 = bingTime0;
	}

	public String getBingTime1() {
		return bingTime1;
	}

	public void setBingTime1(String bingTime1) {
		this.bingTime1 = bingTime1;
	}

	public String getCarId() {
		return carId;
	}

	public void setCarId(String carId) {
		this.carId = carId;
	}

	public String getCarType() {
		return carType;
	}

	public void setCarType(String carType) {
		this.carType = carType;
	}

	public String getCarTypeAlias() {
		if (StringUtils.isBlank(carTypeAlias)) {
			return DictUtils.getDictLabel(carType, "car_type", "");
		}
		return carTypeAlias;
	}

	public void setCarTypeAlias(String carTypeAlias) {
		this.carTypeAlias = carTypeAlias;
	}

	public String getVehicleOwnership() {
		return vehicleOwnership;
	}

	public void setVehicleOwnership(String vehicleOwnership) {
		this.vehicleOwnership = vehicleOwnership;
	}

	public String getVehicleOwnershipAlias() {
		if (StringUtils.isBlank(vehicleOwnershipAlias)) {
			return DictUtils.getDictLabel(vehicleOwnership, "vehicle_ownership", "");
		}
		return vehicleOwnershipAlias;
	}

	public String getVehicleEnergyType() {
		return vehicleEnergyType;
	}

	public void setVehicleEnergyType(String vehicleEnergyType) {
		this.vehicleEnergyType = vehicleEnergyType;
	}

	public void setVehicleOwnershipAlias(String vehicleOwnershipAlias) {
		this.vehicleOwnershipAlias = vehicleOwnershipAlias;
	}

	public String getTransportNumber() {
		return transportNumber;
	}

	public void setTransportNumber(String transportNumber) {
		this.transportNumber = transportNumber;
	}

	public Double getCarLoad() {
		return carLoad;
	}

	public void setCarLoad(Double carLoad) {
		this.carLoad = carLoad;
	}

	public String getCarWeight() {
		return carWeight;
	}

	public void setCarWeight(String carWeight) {
		this.carWeight = carWeight;
	}

	public String getCarLength() {
		return carLength;
	}

	public void setCarLength(String carLength) {
		this.carLength = carLength;
	}

	public String getCarWidth() {
		return carWidth;
	}

	public void setCarWidth(String carWidth) {
		this.carWidth = carWidth;
	}

	public String getCarHeight() {
		return carHeight;
	}

	public void setCarHeight(String carHeight) {
		this.carHeight = carHeight;
	}

	public String getIsPassCheck() {
		return isPassCheck;
	}

	public void setIsPassCheck(String isPassCheck) {
		this.isPassCheck = isPassCheck;
	}

	public String getIsPassCheckAlias() {
		if (StringUtils.isBlank(isPassCheckAlias)) {
			return DictUtils.getDictLabel(isPassCheck, "is_pass_check", "");
		}
		return isPassCheckAlias;
	}

	public void setIsPassCheckAlias(String isPassCheckAlias) {

		this.isPassCheckAlias = isPassCheckAlias;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getStateAlias() {
		if (StringUtils.isBlank(stateAlias)) {
			stateAlias = DictUtils.getDictLabel(state, "car_status1", "");
		}
		return stateAlias;
	}

	public void setStateAlias(String stateAlias) {

		this.stateAlias = stateAlias;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getStatusAlias() {
		if (StringUtils.isNotBlank(status)) {
			return DictUtils.getDictLabel(status, "car_status", "");
		}
		return statusAlias;
	}

	public void setStatusAlias(String statusAlias) {
		this.statusAlias = statusAlias;
	}

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	public String getColorAlias() {
		if (StringUtils.isNotBlank(color)) {
			return DictUtils.getDictLabel(color, "license_plate_color", "");
		}
		return colorAlias;
	}

	public void setColorAlias(String colorAlias) {
		this.colorAlias = colorAlias;
	}

	public String getCarMessageFunctionCode() {
		return carMessageFunctionCode;
	}

	public void setCarMessageFunctionCode(String carMessageFunctionCode) {
		this.carMessageFunctionCode = carMessageFunctionCode;
	}

	public String getMessageFunctionCode() {
		return messageFunctionCode;
	}

	public void setMessageFunctionCode(String messageFunctionCode) {
		this.messageFunctionCode = messageFunctionCode;
	}
}
